package com.spring.design.responsibilitychain;

public abstract class Approver {

	Approver approver;  //下一个处理者
	String name; // 名称
	
	public Approver(String name) {
		this.name = name;
	}

	//下一个处理者
	public void setApprover(Approver approver) {
		this.approver = approver;
	}
	
	//处理审批请求的方法,得到一个请求,处理子类完成,因此做成抽象
	public abstract void processRequest(PurchaseRequest purchaseRequest);
	
}
